<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/pages/common/taglibs.jsp"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>留言信息</title>
<script type="text/javascript">
function checkForm(){
	var content=document.getElementById("revertContent").value;
	if(content==null||content==""){
		alert("请输入回复内容！");
		return false;
					}
		return true;
	
}

</script>
</head>
<body>
<div id="mainDiv" class="x-panel">
<div id="titleDiv" class="x-panel-header"><!--  此处是附页标题  注2 --></div>
<div id="bodyDiv">
<div id="toolbarDiv" class="x-toolbar"><!-- 此处是工具栏    注3--></div>
<div id="panelBodyDiv" class="x-panel-body"><!-- 此处是主体部分    注4-->
<form id="proForm" name="proForm" method="post" target="_self" action="${ctx}/message.do?method=revertMessage" onsubmit="return checkForm();">
<table width="100%" class="datatable">
	<tr>
		<th align="right" width="15%">客户姓名：</th>
		<td align="left">${mess.userName}</td>
	</tr>
	<tr>
		<th align="right" width="15%">联系方式：</th>
		<td align="left">${mess.phoneNumber}</td>
	</tr>
	<tr>
		<th align="right" width="15%">单位名称：</th>
		<td align="left">${mess.unit}</td>
		
	</tr>
	<tr>
		<th align="right" width="15%">地址：</th>
		<td align="left">${mess.address}</td>
	</tr>
	<tr>
		<th align="right" width="15%">邮箱：</th>
		<td align="left">${mess.email}</td>
	</tr>
		<tr>
		<th align="right" width="15%">留言时间：</th>
		<td align="left">${mess.createTime}</td>
	</tr>
	<tr>
		<th align="right" width="15%">留言主题：</th>
		<td align="left"><input type="text" size="60" value="${mess.motive}" readonly="readonly"/></td>
	</tr>
	<tr>
		<th align="right" width="15%">留言内容：</th>
		<td align="left"><textarea rows="6" cols="60" readonly="readonly">${mess.content}</textarea></td>
	</tr>
	<c:if test="${mess.revertFlag eq 0}">
	<tr>
		<th align="right" width="15%">回复内容：</th>
		<td align="left"><textarea rows="6" cols="60" name="revertContent" id="revertContent"></textarea></td>
	</tr>
	<tr>
		<th><input type="hidden" name="userId" id="userId" value="${mess.userId}"/></th>
		<td align="center"><input type="submit" value="提交"/>
		&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" />
		</td>
	</tr>
	</c:if>
	<c:if test="${mess.revertFlag eq 1}">
	<tr>
		<th align="right" width="15%">回复时间：</th>
		<td align="left">${mess.revertTime}</td>
	</tr>
	<tr>
		<th align="right" width="15%">回复内容：</th>
		<td align="left"><textarea rows="5" cols="20" readonly="readonly">${mess.revertContent}</textarea></td>
	</tr>
	</c:if>
</table>
</form>
</div>
</div>
</div>
</body>
</html>